package com.atelier.plugin.projectWizard;

import com.intellij.icons.AllIcons;
import com.intellij.ide.util.projectWizard.ModuleBuilder;
import com.intellij.ide.util.projectWizard.ModuleWizardStep;
import com.intellij.ide.util.projectWizard.SettingsStep;
import com.intellij.openapi.module.JavaModuleType;
import com.intellij.openapi.module.ModuleTypeManager;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

/**
 * @author tangrufei
 * @date 2023-05-12 10:53
 */
public class HywayModuleType extends JavaModuleType {

    private static final String ID = "HywayModuleType";

    public HywayModuleType() {
        super(ID);
    }
    public static HywayModuleType getInstance() {
        return (HywayModuleType) ModuleTypeManager.getInstance().findByID(ID);
    }

    @Override
    public @NotNull @Nls(capitalization = Nls.Capitalization.Title) String getName() {
        return "Hyway";
    }

    @Override
    public @NotNull @Nls(capitalization = Nls.Capitalization.Sentence) String getDescription() {
        return "Hyway";
    }

    @Override
    public @NotNull Icon getNodeIcon(boolean isOpened) {
        return AllIcons.General.ProjectTab;
    }

    /**
     * @param settingsStep
     * @param moduleBuilder
     * @return
     */
    //@Override
    //public @Nullable ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep, @NotNull ModuleBuilder moduleBuilder)
    //{
    //    return super.modifySettingsStep(settingsStep, moduleBuilder);
    //}
}
